package es.ats.codington.festival.interfaces.daos;

import java.sql.Connection;
import java.util.ArrayList;

import es.ats.codington.festival.domain.Event;

/**
 * The Interface IEventSignUpDAO.
 */
public interface IEventSignUpDAO {

	/**
	 * Register event by visitor.
	 *
	 * @param idVisitor the id visitor
	 * @param idEvent the id event
	 * @return true, if successful
	 * @throws Exception the exception
	 */
	boolean registerEventByVisitor(final int idVisitor, final int idEvent)throws Exception;
	
	/**
	 * Un register event in visitor.
	 *
	 * @param idVisitor the id visitor
	 * @param idEvent the id event
	 * @return true, if successful
	 * @throws Exception the exception
	 */
	boolean unRegisterEventInVisitor(int idVisitor, int idEvent) throws Exception;
	
	/**
	 * Gets the events by visitor.
	 *
	 * @param idVisitor the id visitor
	 * @param event the event
	 * @return the events by visitor
	 * @throws Exception the exception
	 */
	boolean getEventsByVisitor(int idVisitor, ArrayList<Event> event) throws Exception;
	
	/**
	 * Gets the semi all events.
	 *
	 * @param idVisitor the id visitor
	 * @param event the event
	 * @return the semi all events
	 * @throws Exception the exception
	 */
	boolean getSemiAllEvents(int idVisitor, ArrayList<Event> event) throws Exception;
}
